﻿using System;
using System.CodeDom.Compiler;
using System.Diagnostics;
using Google.Protobuf;
using Google.Protobuf.Reflection;

namespace EggLink.DanhengServer.Proto
{
	// Token: 0x02000479 RID: 1145
	[DebuggerDisplay("{ToString(),nq}")]
	public sealed class EnterSceneScRsp : IMessage<EnterSceneScRsp>, IMessage, IEquatable<EnterSceneScRsp>, IDeepCloneable<EnterSceneScRsp>, IBufferMessage
	{
		// Token: 0x17000EBF RID: 3775
		// (get) Token: 0x0600338B RID: 13195 RVA: 0x0008DE0B File Offset: 0x0008C00B
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageParser<EnterSceneScRsp> Parser
		{
			get
			{
				return EnterSceneScRsp._parser;
			}
		}

		// Token: 0x17000EC0 RID: 3776
		// (get) Token: 0x0600338C RID: 13196 RVA: 0x0008DE12 File Offset: 0x0008C012
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageDescriptor Descriptor
		{
			get
			{
				return EnterSceneScRspReflection.Descriptor.MessageTypes[0];
			}
		}

		// Token: 0x17000EC1 RID: 3777
		// (get) Token: 0x0600338D RID: 13197 RVA: 0x0008DE24 File Offset: 0x0008C024
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		MessageDescriptor IMessage.Descriptor
		{
			get
			{
				return EnterSceneScRsp.Descriptor;
			}
		}

		// Token: 0x0600338E RID: 13198 RVA: 0x0008DE2B File Offset: 0x0008C02B
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public EnterSceneScRsp()
		{
		}

		// Token: 0x0600338F RID: 13199 RVA: 0x0008DE34 File Offset: 0x0008C034
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public EnterSceneScRsp(EnterSceneScRsp other) : this()
		{
			this.gameStoryLineId_ = other.gameStoryLineId_;
			this.isCloseMap_ = other.isCloseMap_;
			this.isOverMap_ = other.isOverMap_;
			this.contentId_ = other.contentId_;
			this.retcode_ = other.retcode_;
			this._unknownFields = UnknownFieldSet.Clone(other._unknownFields);
		}

		// Token: 0x06003390 RID: 13200 RVA: 0x0008DE94 File Offset: 0x0008C094
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public EnterSceneScRsp Clone()
		{
			return new EnterSceneScRsp(this);
		}

		// Token: 0x17000EC2 RID: 3778
		// (get) Token: 0x06003391 RID: 13201 RVA: 0x0008DE9C File Offset: 0x0008C09C
		// (set) Token: 0x06003392 RID: 13202 RVA: 0x0008DEA4 File Offset: 0x0008C0A4
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint GameStoryLineId
		{
			get
			{
				return this.gameStoryLineId_;
			}
			set
			{
				this.gameStoryLineId_ = value;
			}
		}

		// Token: 0x17000EC3 RID: 3779
		// (get) Token: 0x06003393 RID: 13203 RVA: 0x0008DEAD File Offset: 0x0008C0AD
		// (set) Token: 0x06003394 RID: 13204 RVA: 0x0008DEB5 File Offset: 0x0008C0B5
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public bool IsCloseMap
		{
			get
			{
				return this.isCloseMap_;
			}
			set
			{
				this.isCloseMap_ = value;
			}
		}

		// Token: 0x17000EC4 RID: 3780
		// (get) Token: 0x06003395 RID: 13205 RVA: 0x0008DEBE File Offset: 0x0008C0BE
		// (set) Token: 0x06003396 RID: 13206 RVA: 0x0008DEC6 File Offset: 0x0008C0C6
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public bool IsOverMap
		{
			get
			{
				return this.isOverMap_;
			}
			set
			{
				this.isOverMap_ = value;
			}
		}

		// Token: 0x17000EC5 RID: 3781
		// (get) Token: 0x06003397 RID: 13207 RVA: 0x0008DECF File Offset: 0x0008C0CF
		// (set) Token: 0x06003398 RID: 13208 RVA: 0x0008DED7 File Offset: 0x0008C0D7
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint ContentId
		{
			get
			{
				return this.contentId_;
			}
			set
			{
				this.contentId_ = value;
			}
		}

		// Token: 0x17000EC6 RID: 3782
		// (get) Token: 0x06003399 RID: 13209 RVA: 0x0008DEE0 File Offset: 0x0008C0E0
		// (set) Token: 0x0600339A RID: 13210 RVA: 0x0008DEE8 File Offset: 0x0008C0E8
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint Retcode
		{
			get
			{
				return this.retcode_;
			}
			set
			{
				this.retcode_ = value;
			}
		}

		// Token: 0x0600339B RID: 13211 RVA: 0x0008DEF1 File Offset: 0x0008C0F1
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override bool Equals(object other)
		{
			return this.Equals(other as EnterSceneScRsp);
		}

		// Token: 0x0600339C RID: 13212 RVA: 0x0008DF00 File Offset: 0x0008C100
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public bool Equals(EnterSceneScRsp other)
		{
			return other != null && (other == this || (this.GameStoryLineId == other.GameStoryLineId && this.IsCloseMap == other.IsCloseMap && this.IsOverMap == other.IsOverMap && this.ContentId == other.ContentId && this.Retcode == other.Retcode && object.Equals(this._unknownFields, other._unknownFields)));
		}

		// Token: 0x0600339D RID: 13213 RVA: 0x0008DF7C File Offset: 0x0008C17C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override int GetHashCode()
		{
			int num = 1;
			if (this.GameStoryLineId != 0U)
			{
				num ^= this.GameStoryLineId.GetHashCode();
			}
			if (this.IsCloseMap)
			{
				num ^= this.IsCloseMap.GetHashCode();
			}
			if (this.IsOverMap)
			{
				num ^= this.IsOverMap.GetHashCode();
			}
			if (this.ContentId != 0U)
			{
				num ^= this.ContentId.GetHashCode();
			}
			if (this.Retcode != 0U)
			{
				num ^= this.Retcode.GetHashCode();
			}
			if (this._unknownFields != null)
			{
				num ^= this._unknownFields.GetHashCode();
			}
			return num;
		}

		// Token: 0x0600339E RID: 13214 RVA: 0x0008E01F File Offset: 0x0008C21F
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override string ToString()
		{
			return JsonFormatter.ToDiagnosticString(this);
		}

		// Token: 0x0600339F RID: 13215 RVA: 0x0008E027 File Offset: 0x0008C227
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void WriteTo(CodedOutputStream output)
		{
			output.WriteRawMessage(this);
		}

		// Token: 0x060033A0 RID: 13216 RVA: 0x0008E030 File Offset: 0x0008C230
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalWriteTo(ref WriteContext output)
		{
			if (this.IsOverMap)
			{
				output.WriteRawTag(8);
				output.WriteBool(this.IsOverMap);
			}
			if (this.IsCloseMap)
			{
				output.WriteRawTag(16);
				output.WriteBool(this.IsCloseMap);
			}
			if (this.ContentId != 0U)
			{
				output.WriteRawTag(24);
				output.WriteUInt32(this.ContentId);
			}
			if (this.Retcode != 0U)
			{
				output.WriteRawTag(96);
				output.WriteUInt32(this.Retcode);
			}
			if (this.GameStoryLineId != 0U)
			{
				output.WriteRawTag(120);
				output.WriteUInt32(this.GameStoryLineId);
			}
			if (this._unknownFields != null)
			{
				this._unknownFields.WriteTo(ref output);
			}
		}

		// Token: 0x060033A1 RID: 13217 RVA: 0x0008E0DC File Offset: 0x0008C2DC
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public int CalculateSize()
		{
			int num = 0;
			if (this.GameStoryLineId != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.GameStoryLineId);
			}
			if (this.IsCloseMap)
			{
				num += 2;
			}
			if (this.IsOverMap)
			{
				num += 2;
			}
			if (this.ContentId != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.ContentId);
			}
			if (this.Retcode != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.Retcode);
			}
			if (this._unknownFields != null)
			{
				num += this._unknownFields.CalculateSize();
			}
			return num;
		}

		// Token: 0x060033A2 RID: 13218 RVA: 0x0008E164 File Offset: 0x0008C364
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(EnterSceneScRsp other)
		{
			if (other == null)
			{
				return;
			}
			if (other.GameStoryLineId != 0U)
			{
				this.GameStoryLineId = other.GameStoryLineId;
			}
			if (other.IsCloseMap)
			{
				this.IsCloseMap = other.IsCloseMap;
			}
			if (other.IsOverMap)
			{
				this.IsOverMap = other.IsOverMap;
			}
			if (other.ContentId != 0U)
			{
				this.ContentId = other.ContentId;
			}
			if (other.Retcode != 0U)
			{
				this.Retcode = other.Retcode;
			}
			this._unknownFields = UnknownFieldSet.MergeFrom(this._unknownFields, other._unknownFields);
		}

		// Token: 0x060033A3 RID: 13219 RVA: 0x0008E1F0 File Offset: 0x0008C3F0
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(CodedInputStream input)
		{
			input.ReadRawMessage(this);
		}

		// Token: 0x060033A4 RID: 13220 RVA: 0x0008E1FC File Offset: 0x0008C3FC
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalMergeFrom(ref ParseContext input)
		{
			uint num;
			while ((num = input.ReadTag()) != 0U)
			{
				if (num <= 16U)
				{
					if (num == 8U)
					{
						this.IsOverMap = input.ReadBool();
						continue;
					}
					if (num == 16U)
					{
						this.IsCloseMap = input.ReadBool();
						continue;
					}
				}
				else
				{
					if (num == 24U)
					{
						this.ContentId = input.ReadUInt32();
						continue;
					}
					if (num == 96U)
					{
						this.Retcode = input.ReadUInt32();
						continue;
					}
					if (num == 120U)
					{
						this.GameStoryLineId = input.ReadUInt32();
						continue;
					}
				}
				this._unknownFields = UnknownFieldSet.MergeFieldFrom(this._unknownFields, ref input);
			}
		}

		// Token: 0x04001442 RID: 5186
		private static readonly MessageParser<EnterSceneScRsp> _parser = new MessageParser<EnterSceneScRsp>(() => new EnterSceneScRsp());

		// Token: 0x04001443 RID: 5187
		private UnknownFieldSet _unknownFields;

		// Token: 0x04001444 RID: 5188
		public const int GameStoryLineIdFieldNumber = 15;

		// Token: 0x04001445 RID: 5189
		private uint gameStoryLineId_;

		// Token: 0x04001446 RID: 5190
		public const int IsCloseMapFieldNumber = 2;

		// Token: 0x04001447 RID: 5191
		private bool isCloseMap_;

		// Token: 0x04001448 RID: 5192
		public const int IsOverMapFieldNumber = 1;

		// Token: 0x04001449 RID: 5193
		private bool isOverMap_;

		// Token: 0x0400144A RID: 5194
		public const int ContentIdFieldNumber = 3;

		// Token: 0x0400144B RID: 5195
		private uint contentId_;

		// Token: 0x0400144C RID: 5196
		public const int RetcodeFieldNumber = 12;

		// Token: 0x0400144D RID: 5197
		private uint retcode_;
	}
}
